package org.linlinjava.litemall.db.domain;

import java.time.LocalDateTime;
import java.util.Date;

import lombok.Data;

@Data
public class LitemallMessage {
    /**
     * id
     */
    private Integer id;

    /**
     * 发送用户id
     */
    private String senderId;

    /**
     * 接收用户id
     */
    private String receiverId;

    /**
     * 发送内容
     */
    private String content;

    /**
     * 消息类型 MessageType
     */
    private String type;

    /**
     * 商品id
     */
    private Integer productId;


    /**
     * 是否已读
     */
    private boolean isRead;

    /**
     * 发送时间
     */
    private Date createTime;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getSenderId() {
        return senderId;
    }

    public void setSenderId(String senderId) {
        this.senderId = senderId;
    }

    public String getReceiverId() {
        return receiverId;
    }

    public void setReceiverId(String receiverId) {
        this.receiverId = receiverId;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public Integer getProductId() {
        return productId;
    }

    public void setProductId(Integer productId) {
        this.productId = productId;
    }

    public boolean isRead() {
        return isRead;
    }

    public void setRead(boolean read) {
        isRead = read;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
}